const route = require("../../router");
const resp = require("../../router/internal/response");

class user extends route.RouteBase {

    /**
     * 处理用户登录
     * @param p
     * @returns {Promise<{msg: string, data: {}, success: boolean}>}
     */
    async login(p) {
        console.log("登录:" + JSON.stringify(this.event))
        return resp.success({
            a: 1,
            b: 2,
            c: 3
        })
    }

    async update(userInfo) {
        console.log("更新用户信息:" + JSON.stringify(userInfo));
    }

    async follow(userId) {

    }
}

module.exports = user

